import instance from "@/api/request"

// 获取数据方法
export const getTreeTableData = ()=>{
  return instance.get('/tree/getTreeTableList')
}

// 新增方法
export const addTreeTable = (params:any)=>{
  return instance.post('/tree/addTreeTableData',params)
}


// 删除方法
export const deleteTreeTableData = (id:any)=>{
  return instance.delete(`/tree/delTreeTableById/${id}`)
}

// 更新方法
export const updateTreeTableData = (id:any,params:any)=>{
  return instance.patch(`/tree/updateTreeTable/${id}`,params)
}

